package com.itheima.fujiati;

public class Student {
    private String name;
    private int chanese;
    private int math;

    public Student() {
    }

    public Student(String name, int chanese, int math) {
        this.name = name;
        this.chanese = chanese;
        this.math = math;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChanese() {
        return chanese;
    }

    public void setChanese(int chanese) {
        this.chanese = chanese;
    }

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }
    public  void show(){
        System.out.println(name+"语文:"+chanese+"数学"+math+"总和"+(chanese+math));
    }
}
